var app = getApp();
Page({
  data: {
    list:[],
    active:''
  },
  onLoad(o) {
    this.getList()
  },
  getList(){
    var t = this;
    wx.request({
      url:'https://live.sgwxmini.com/beauty/rowNumber/itemList',
      data:{
        hosId:app.api.siteinfo.hosId
      },
      success(e){
        e.data.result == 0 && t.setData({
          list:e.data.data.itemList
        })
      }
    })
  },
  setItem(e){
    var item = e.currentTarget.dataset.item,
      v = this.data.active;
    this.setData({
      active:item.id==v?'':item.id,
      item:item.id==v?{}:item
    })
  },
  mySubmit(form){
    var id = this.data.active;
    id && wx.navigateTo({url:'/pages/yuyue2/project/project?id='+id})
  },
})